package com.nuoniu.sibanyun.controller.cm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * <p>
 * 合同变更记录
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cm_contract_change")
@ApiModel(value="CmContractChange对象", description="合同变更记录")
public class CmContractChange extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "合同id")
    @TableField("contract_id")
    private Integer contractId;

    @ApiModelProperty(value = "合同号")
    @TableField("contract_code")
    private String contractCode;

    @ApiModelProperty(value = "合同名称")
    @TableField("contract_name")
    private String contractName;

    @ApiModelProperty(value = "版本号")
    @TableField("version_code")
    private String versionCode;

    @ApiModelProperty(value = "是否初始版本")
    @TableField("is_initial_version")
    private Boolean isInitialVersion;

    @ApiModelProperty(value = "生效状态 0未生效 1:已生效 2:初始订单")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "变更人id")
    @TableField("change_user_id")
    private Integer changeUserId;

    @ApiModelProperty(value = "变更人姓名")
    @TableField("change_user_name")
    private String changeUserName;

    @ApiModelProperty(value = "变更日期")
    @TableField("change_date")
    private LocalDate changeDate;

    @ApiModelProperty(value = "变更原因")
    @TableField("change_cause")
    private String changeCause;


}
